package com.example.mutildatasource.service.impl;

import com.example.mutildatasource.entity.Student;
import com.example.mutildatasource.mapper.primary.StudentMapper;
import com.example.mutildatasource.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    public void insert(Student student){
        studentMapper.insert(student);
    }


    public List<Student> queryByCondition(Student student){
        return this.studentMapper.queryByCondition(student);
    }

}
